package com.gao.mq.domain;

import com.gao.mq.dto.ContentModel;
import com.gao.mq.dto.SmsContentModel;

import java.io.Serializable;
import java.util.Set;

/**
 * 消息实体类
 */
public class MessageInfo {

    private Long messageId;
    /**
     * 消息接收者
     */
    private Set<String> receiver;

    /**
     * 消息类型(0, 短信；1，邮件)
     */
    private Integer messageType;

    /**
     * 消息模板
     */
    private String templateCode;

    /**
     * 消息内容类型
     * 一般短信都是文字信息或者带链接的文字信息
     * 邮件会有文字信息加图片信息
     */
    private ContentModel contentModel;

    public MessageInfo() {
    }

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Set<String> getReceiver() {
        return receiver;
    }

    public void setReceiver(Set<String> receiver) {
        this.receiver = receiver;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public ContentModel getContentModel() {
        return contentModel;
    }

    public void setContentModel(ContentModel contentModel) {
        this.contentModel = contentModel;
    }
}
